Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODStorageUnit


SetOffset

The SetOffset method sets the offset of the currently focused value.

void SetOffset (in ODULong offset);
offset
The new offset (in bytes) of the read/write position from the beginning of the data stream in the currently focused value, expressed as an unsigned 32-bit value.
DISCUSSION
You can call this method if you want to read or write data at a particular position in the focused value. An offset of 0 means the beginning of the data stream corresponding to the focused value; an offset equal to the current size of the focused value (as returned by the GetSize method) means the end of the data stream. You may not specify an offset larger than the current size of the focused value.

EXCEPTIONS
kODErrUnfocusedStorageUnit
This storage unit is not focused on a value.
kODErrZeroRefCount
This storage unit has a reference count of 0.
SEE ALSO
The ODStorageUnit::GetOffset method (page 691).
The ODStorageUnit::GetSize method (page 695).
Listing 2-45 on page 106 in OpenDoc Cookbook.
"Manipulating the Data in a Value" on page 276 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help